﻿using System;
using System.Drawing;
using System.Windows.Forms;
using CloudShot.Core.Types;

namespace CloudShot
{
	public partial class RecentShotControl : UserControl
	{
		public RecentShotControl(ShotInfo shotInfo)
		{
			InitializeComponent();
			UpdateView(shotInfo);
		}

		private void UpdateView(ShotInfo shotInfo)
		{
			picImage.Image = shotInfo.Thumbnail;
			lblShotName.Text = shotInfo.Name;
			lblShotInfo.Text = shotInfo.Path;
			lblTime.Text = DateTime.Now.ToString();
		}

		private void OnOpenClick(object sender, LinkLabelLinkClickedEventArgs e)
		{

		}

		private void OnCopyLinkClick(object sender, LinkLabelLinkClickedEventArgs e)
		{

		}

		private void OnMouseEnter(object sender, System.EventArgs e)
		{

		}

		private void OnPaint(object sender, PaintEventArgs e)
		{
			//e.Graphics.DrawLine(Pens.LightGray, 0, 0, Width, 0);
		}
	}
}